public class 算发问题 {
    public static void main(String[] args) {
        int b = 0;
        for (int a = 1;a<=1000;a++){

            if (a% 5 ==0){
                System.out.print(a+"  ");
            }
            if (a %25 ==0){
                System.out.println(" ");
            }
        }
    }
}
